﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListEnterpriseMember.aspx.cs" Inherits="lcmyjobs.Web.Admin.ListEnterpriseMember" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>全部升级单位</title>
    <script src="../Scripts/mybasic.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../css/AdminFrame.css" rel="stylesheet" type="text/css" />
     <style type="text/css">
        .style1
        {
            width: 100%;
        }

    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rightCenter">
        <div class="rightBack">
           <div class="rightContentTop">
                <ul>
                    <li >
                        <a href="ListEnterpriseCheck.aspx" >全部单位</a>
                    </li>
                    <li class="cur">
                        <a href="ListEnterpriseMember.aspx" >全部升级单位</a>
                    </li>
                    <li>
                        <a  href="ListEnterpriseTop.aspx">全部固定单位</a>
                    </li>
                </ul>
           </div>
           <div class="rightContentMiddle">
                <table class="style1">
                <tr>
                    <td  class="style3">
                        <asp:Image ID="Image1" CssClass="imgstyle" ImageUrl="../images/h_ctenter_iocn.jpg" runat="server" />&nbsp;
                        <span class="spanstyle">等待审核的单位<asp:Label ID="lbl_count" runat="server"></asp:Label>个</span>
                     
                    </td>
                    <td style=" text-align:left">
                           
                    </td>
                </tr>
                 <tr>
                    <td colspan="2">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            DataKeyNames="enterprise_lid" EnableModelValidation="True" 
                            onrowcommand="GridView1_RowCommand" Width="100%" CssClass="grid" 
                            GridLines="None" onrowdatabound="GridView1_RowDataBound">
                            <Columns>
                               
                                <asp:TemplateField HeaderText="编号">
                                     <HeaderTemplate>
                                         <input id="Checkbox1" type="checkbox" onclick="checkall(this)" />&nbsp;编号
                                    </HeaderTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                         <asp:CheckBox ID="cbo_rid" runat="server" />
                                          <asp:Label ID="lbl_email" runat="server" Text='<%# Bind("email") %>' 
                                            Visible="False"></asp:Label>
                                        <asp:Label ID="lbl_info" runat="server" 
                                            Text='<%# Eval("enterprise_mid")+","+Eval("enterprise_bid")+","+Eval("membertime")+","+Eval("enterprise_lid") %>' 
                                            Visible="False"></asp:Label>
                                        <asp:Label ID="Label2" runat="server" 
                                            Text='<%# GetBH(Eval("enterprise_lid").ToString()) %>'></asp:Label>
                                    </ItemTemplate>
                                      <HeaderStyle HorizontalAlign="Left" CssClass="tdleftmargin"/>
                                    <ItemStyle  CssClass="tdleftmargin" HorizontalAlign="Left" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="单位名称">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="hy_show" runat="server" target='_blank'
                                            NavigateUrl='<%# "ShowEnterpriseBasic.aspx?enterprise_bid="+Eval("enterprise_bid") %>' 
                                            Text='<%# Bind("name") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("name") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="telephone" HeaderText="固定电话" />
                                <asp:TemplateField HeaderText="会员类型">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" 
                                            Text='<%# Eval("memberclass") + " " +Eval("membertime")+"天" %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="releasejobcount" HeaderText="可发布职位" Visible="false" />
                                <asp:TemplateField HeaderText="有效期">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TB_valid" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="label_valid" runat="server" 
                                            Text='<%# lcmyjobs.BLL.Tools.GetValidity(Eval("validity_last").ToString()) %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="submittime" HeaderText="申请时间"  DataFormatString="{0:yyyy-MM-dd H:mm}"/>
                                <asp:BoundField DataField="statusname" HeaderText="审核状态" />
                                <asp:TemplateField HeaderText="操作">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbn_check" runat="server" 
                                             OnClientClick= "return confirm('确认刷新吗？')" CommandArgument='<%# Bind("enterprise_lid") %>' CommandName="lbn_check">刷新</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="pagerstyle">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CurrentPageButtonPosition="Center"
                            PageSize="15" AlwaysShowFirstLastPageNumber="True" CustomInfoTextAlign="left"
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" NumericButtonCount="10"
                    PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="" CustomInfoHTML="第 %CurrentPageIndex% 页 共 %PageCount%页 %RecordCount%条记录 "
                    LayoutType="Table" ShowCustomInfoSection="left" ShowNavigationToolTip="True"
                    ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextAfterPageIndexBox="&nbsp;页"
                    TextBeforePageIndexBox="转到第" onpagechanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2">
                    <div style=" margin:0 auto; width:450px;">
                        <asp:LinkButton ID="lbn_sendEmail" runat="server"  CssClass="bgbtn" ForeColor="#e13804" onclick="lbn_sendEmail_Click"  OnClientClick= "if(havecheck()) return confirm('确认要发送邮件吗？')">发送邮件 </asp:LinkButton>

                        <asp:LinkButton ID="lbn_update" runat="server"  CssClass="bgbtn" ForeColor="#e13804" onclick="lbn_update_Click" OnClientClick= "if(havecheck()) return confirm('确认要刷新升级吗？')">刷新升级</asp:LinkButton>

                        <asp:LinkButton ID="lbn_del" runat="server"  CssClass="bgbtn" ForeColor="#e13804" onclick="lbn_del_Click"  OnClientClick= "if(havecheck()) return confirm('确认删除吗？')">删除</asp:LinkButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
            </table>
           </div>
        </div>
    </div>
    </form>
</body>
</html>
